<?php
/**
 * EDIT FORM View Helper
*/
class Zend_View_Helper_EditFormInfomation extends Zend_View_Helper_Abstract
{
    protected $_form;
    
    protected $_title;
    protected $_description;
    protected $_introduction;
    
    public function editFormInfomation($form)
    {
        $this->_form = $form;
        return $this;
    }
    public function editTitle()
    {
        $this->_title =
        '<a id="multi_expand_titles" class="multi_language_expand closed">&nbsp;</a>
	        <div id="titles" class="field-wrapper">
	        <div id="zone_title_vi" class="zone default">'.
	        		$this->_form->titleVi.'
	        	</div>
	        	<div id="zone_title_en" class="zone" style="display:none;">'.
	        		$this->_form->titleEn.'			
	        	</div>
	        	<div id="zone_title_ja" class="zone" style="display:none;">'.
	        		$this->_form->titleJa.'			
	        	</div>			
	        	<div id="zone_title_zh" class="zone" style="display:none;">
	        		'.$this->_form->titleZh.'			
	        	</div>			
	        	<div id="zone_title_fr" class="zone" style="display:none;">
	        		'.$this->_form->titleFr.'		
	        	</div>			
	        </div>';
        
        	return $this;
    }
    public function editDescription()
    {
        $this->_description =
       '<a id="multi_expand_descriptions" class="multi_language_expand closed help">&nbsp;</a>
			<div id="descriptions" class="field-wrapper">
				<div id="zone_desc_vi" class="zone default">
					'.$this->_form->descVi.'			
				</div>
				<div id="zone_desc_en" class="zone" style="display:none;">
					'.$this->_form->descEn.'			
				</div>
				<div id="zone_desc_ja" class="zone" style="display:none;">
					'.$this->_form->descJa.'			
				</div>
				<div id="zone_desc_zh" class="zone" style="display:none;">
					'.$this->_form->descZh.'			
				</div>
				<div id="zone_desc_fr" class="zone" style="display:none;">
					'.$this->_form->descFr.'			
				</div>
			</div>';
       return $this;
    }
    public function editIntroduction()
    {
        $this->_introduction =
        '<a id="multi_expand_intros" class="multi_language_expand closed">&nbsp;</a>
			<div id="intros" class="field-wrapper">
				<div id="zone_intro_vi" class="zone default">
					'.$this->_form->introVi.'		
				</div>
				<div id="zone_intro_en" class="zone" style="display:none;">
					'.$this->_form->introEn.'			
				</div>
				<div id="zone_intro_ja" class="zone" style="display:none;">
					'.$this->_form->introJa.'			
				</div>
				<div id="zone_intro_zh" class="zone" style="display:none;">
					'.$this->_form->introZh.'			
				</div>
				<div id="zone_intro_fr" class="zone" style="display:none;">
					'.$this->_form->introFr.'			
				</div>
			</div>';
        return $this;
    }
   
    public function toString()
    {
    	$xhtml='<form id="content" method="post" enctype="multipart/form-data" >
					<div class="detail-infomation-left">';
    	$xhtml.='<fieldset class="form-group" >
					<legend>Informations</legend>			
					<a class="expand"><span class="icon-button mini"></span>Minimize</a>
					
					<div>	
					
						<div class="form-item">'.$this->_title.'		
							<div class="clear"></div>
						</div>
						
						<div class="form-item">'.$this->_description.'		
							<div class="clear"></div>
						</div>
						<div class="form-item">'.$this->_introduction.'		
							<div class="clear"></div>
						</div>
					</div>
					
				</fieldset>';
    	return $xhtml;
    }

}
?>